//************************************************
//  *Author：jxx
//  *QQ：283591387
//  *代码由框架生成,任何更改都可能导致被代码生成器覆盖
//  *业务请在q_after_returnList.js中编写
//************************************************
export default function () {
	return {
		editFormFields: { After_returnList: '', Remark: '' },
		editFormOptions: [
			{ title: '备注', field: 'Remark' },
			{ title: 'ID', required: true, field: 'After_returnList', disabled: true }
		],
		searchFormFields: { Goods_sub: '', Goods_name: '', Goods_size: '', AvailableQuantity: '', Goods_num: '', Goods_price: '', Return_price: '', Return_total_price: '' },
		searchFormOptions: [
			{ title: '商品编码', field: 'Goods_sub' },
			{ title: '商品名称', field: 'Goods_name' },
			{ title: '规格型号', field: 'Goods_size' },
			{ title: '可用数量', field: 'AvailableQuantity', type: 'decimal' },
			{ title: '退货数量', field: 'Goods_num', type: 'decimal' },
			{ title: '发货单价', field: 'Goods_price', type: 'decimal' },
			{ title: '退货单价', field: 'Return_price', type: 'decimal' },
			{ title: '退货总价', field: 'Return_total_price', type: 'decimal' }
		],
		columns: [
			{ field: 'Goods_sub', title: '商品编码', type: 'string' },
			{ field: 'Goods_name', title: '商品名称', type: 'string' },
			{ field: 'Goods_size', title: '规格型号', type: 'string' },
			{ field: 'AvailableQuantity', title: '可用数量', type: 'float' },
			{ field: 'Goods_num', title: '退货数量', type: 'float', edit: true },
			{ field: 'Remark', title: '备注', type: 'string' },
			{ field: 'WHSE_name', title: '库位名称', type: 'string', bind: { key: '库位编码', data: [] } }
		],
		table: {
			key: 'After_returnList',
			footer: 'Foots',
			cnName: '售后退货明细',
			name: 'q_after_returnList',
			url: '/q_after_returnList/',
			sortName: 'Goods_sub'
		}
	};
}
